import { useHistory } from "react-router-dom"
const Login = () => {
  const history = useHistory()
  // 三个方法  push  replace go(-2)
  return (
    <div>
      <h1>登陆页</h1>
      <button onClick={() => history.push("/home")}>登陆</button>
    </div>
  )
}
export default Login
